package org.nf.db.util.result;

import org.nf.db.util.RowProcessor;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * @author wangl
 * @date 2021/7/29
 */
public class ArrayListHandler extends AbstractListHandler<Object[]>{

    /**
     * 转换为Object数组
     * @param rs 结果集
     * @return 返回
     * @throws SQLException 异常
     */
    @Override
    public Object[] handleRow(ResultSet rs) throws SQLException {
        return RowProcessor.toArray(rs);
    }
}
